home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 February / Chip_2003-02_cd1.bin / zkuste / xptools / install / Xsetup / setup.exe / {app} / plugins / XQ WinNT Scr Grace Period.xpl < prev    next >
Text File  |  2002-11-02  |  2KB  |  44 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH 1"="System\Screensaver"
  5. "UIPATH 2"="Appearance\System\Screensaver"
  6. "NAME"="Password Grace Period"
  7. "VERSION"="1.00"
  8. "OSVERSION"="010101"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="Timeout (s)"
  11. "DESCRIPTION 1"="If a screensaver becomes active, and it is configured to be password protected, there are normally only five seconds where the screensaver can be deactivated without entering the password."
  12. "DESCRIPTION 2"="This period of time, where the screensaver can be turned off without forcing you to enter the password, is known as grace period."
  13. "DESCRIPTION 3"="With this setting, you can control this grace period. Simply enter the value (in seconds) how long this grace period should be. To have the default values restored, simply leave the field blank."
  14. "DESCRIPTION 4"="Notice: This setting affects all users on this computer."
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www,xteq.com/"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"=""
  19.  
  20. sV1="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\ScreenSaverGracePeriod"
  21.  
  22.  
  23. Sub Plugin_Initialize 
  24.   i=RegReadValue(sV1)
  25.   SetUIElement 1,i
  26. End Sub
  27.  
  28. Sub Plugin_CheckData(ElementIndex)
  29. End Sub
  30.  
  31. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  32.  i=GetUIElement(1)
  33.  if len(i)>0 then
  34.     Call RegWriteValue(sV1,i,2)
  35.  else
  36.     If RegValueExists(sV1) then RegDeleteValue(sV1)
  37.  end if
  38.  
  39.  Call Restart() 
  40. End Sub
  41.  
  42. Sub Plugin_Terminate 
  43. End Sub
  44.